﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Window : MonoBehaviour
{
    [SerializeField]
    protected CanvasGroup canvasGroup;
    private npc nPC;
    public virtual void Open(npc nPC)
    {

        this.nPC = nPC;
        canvasGroup.alpha = 1;
        canvasGroup.blocksRaycasts = true;
    }
    public virtual void Close()
    {
        canvasGroup.alpha = 0;

        canvasGroup.blocksRaycasts = false;
        nPC.MyIsInteracting = false;
        nPC = null;
        //ClearButtons();
    }
  
}
